package com.sh.data.engine.repository.dao.normalization.standard.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sh.data.engine.repository.dao.base.EngineBaseModel;
import lombok.*;

/**
 * @author binghe
 * @email binghe.yxh@xuelangyun.com
 */
@Data
@Builder(toBuilder = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_dictionary_mapping_detail")
public class DictionaryMappingDetailEntity extends EngineBaseModel<DictionaryMappingDetailEntity> {

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 映射表id
     */
    private Long dictMappingId;

    /**
     * 字典id
     */
    private Long dictId;

    /**
     * hive库tbls表id
     */
    private Long tblId;

    /**
     * 表名称
     */
    private String tblName;

    /**
     * 字段名
     */
    private String fieldName;

    /**
     * 字段描述
     */
    private String fieldDes;

    /**
     * 数据类型
     */
    private String dictDataType;

    /**
     * 数据长度
     */
    private Integer dictDataLength;

    /**
     * 绑定状态 1已绑定 0未绑定
     */
    private Integer boundStatus;

    /**
     * 来源 0虎符
     */
    private Integer mapSource;

    /**
     * 删除状态 0-删除 1-未删除
     */
    @TableLogic(value = "1", delval = "0")
    private Integer rowState;

    //  @Tolerate
    //  public DictionaryMappingDetailEntity(){}
}
